from django.db import models

# Create your models here.
class news(models.Model):
    id=models.AutoField(primary_key=True)
    title=models.CharField(max_length=50,verbose_name='标题')
    matter=models.TextField(verbose_name='内容')
    fl=models.ForeignKey(to='classify',on_delete=True,verbose_name='分类')
class classify(models.Model):
    id=models.AutoField(primary_key=True)
    typess=models.CharField(max_length=21)
